package com.vmove.childtrain.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;
import android.widget.SlidingDrawer;

/**
 * 拦截点击事件的抽屉布局
 */
public class CustomSlidingDrawer extends SlidingDrawer {
    public CustomSlidingDrawer(Context context, AttributeSet attrs) {
        super(context, attrs);
    }

    @Override
    public boolean onTouchEvent(MotionEvent event) {
        if (event.getAction()==MotionEvent.ACTION_DOWN){
            return true;
        }
        return super.onTouchEvent(event);
    }
}
